package com.hello.world;

import org.springframework.beans.factory.annotation.Autowired;

/**
 * @description:todo
 * @auth yangzhiwei
 * @date 2021-03-11 19:32
 */
public class HelloWorldUtil {
    @Autowired
    HelloWorldProperties helloWorldProperties;

    public void printPersonalInformation(String preMessage) {
        System.out.println(preMessage + helloWorldProperties.getCountry() +
                ","+ helloWorldProperties.getProvince()+
                ","+ helloWorldProperties.getCounty()+
                ","+ helloWorldProperties.getTown()+
                ","+ helloWorldProperties.getName()
        );
    }
}
